package com.dankegongyu.lib.expandtextview;

import android.os.Bundle;
import android.widget.TextView;

import com.dankegongyu.lib.R;
import com.dankegongyu.lib.base.BaseAppActivity;
import com.dankegongyu.lib.common.widget.DKExpandTextLayout;

import androidx.annotation.Nullable;
import butterknife.BindView;

/**
 * @author wupuquan
 * @version 1.0
 * @since 2019/4/9 17:53
 */
public class TestExpandTextActivity extends BaseAppActivity {

    @BindView(R.id.expandTextLayout)
    DKExpandTextLayout mExpandTextLayout;

    @Override
    public int getContentViewLayoutId() {
        return R.layout.activity_expand_text;
    }

    @Override
    public void init(@Nullable Bundle savedInstanceState) {
        mExpandTextLayout.setOnExpandStateChangeListener(new DKExpandTextLayout.OnExpandStateChangeListener() {
            @Override
            public void onExpandStateChanged(TextView textView, boolean isExpanded) {

            }
        });
        mExpandTextLayout.setText("苏菲的世界开了房间开始了的解放了圣诞节福利看电视剧福利科技水电费了水电费就" +
                "凉快圣诞节疯狂洛杉矶的考虑福建省的路水电费水电费看来是了深刻的房间速度快放假圣诞节了开发发的货款");
    }

    @Override
    public void initPresenter() {

    }

    @Override
    public void doBusiness() {

    }

}
